package com.ruoyi.fitsculpt.controller.app;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.fitsculpt.controller.EasyfitExercisePlansController;
import com.ruoyi.fitsculpt.domain.EasyfitExercisePlans;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/app/easyfit/exerciseplans")
public class AppEasyfitExercisePlansController extends EasyfitExercisePlansController {

    @GetMapping("/list")
    public TableDataInfo list(EasyfitExercisePlans easyfitExercisePlans) {
        return super.list(easyfitExercisePlans);
    }

    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return super.getInfo(id);
    }

    @PostMapping
    public AjaxResult add(@RequestBody EasyfitExercisePlans easyfitExercisePlans) {
        return super.add(easyfitExercisePlans);
    }

    @PutMapping
    public AjaxResult edit(@RequestBody EasyfitExercisePlans easyfitExercisePlans) {
        return super.edit(easyfitExercisePlans);
    }

    @DeleteMapping("/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
        return super.remove(ids);
    }
} 